package com.springbook;
import java.util.*;

public class CommandLineView {
	private RentABike rentABike;
	
	public CommandLineView() {}
	public RentABike getRentABike() {
		return rentABike;
	}
	public void setRentABike(RentABike rentABike) {
		this.rentABike = rentABike;
	}
	
	public void printAllBikes() {
		System.out.println(rentABike.toString());
		Iterator<Bike> iter=rentABike.getBikes().iterator();
		while (iter.hasNext()) System.out.println(iter.next().toString());
	}
}
